package net.wds.ssbus.modules.ssbus.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageHelper;

import com.github.pagehelper.PageInfo;
import net.wds.ssbus.modules.ssbus.mapper.TbSsbusLogMapper;
import net.wds.ssbus.modules.ssbus.pojo.TbSsbusChannelEntrty;
import net.wds.ssbus.modules.ssbus.pojo.TbSsbusLogEntrty;
import net.wds.ssbus.modules.ssbus.service.TbSsbusLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TbSsbusLogServiceImp implements TbSsbusLogService {
    @Resource
    private TbSsbusLogMapper tbSsbusLogMapper;

    @Override
    public IPage<TbSsbusLogEntrty> list(int pageNo, int pageSize, String key) {
        Page<TbSsbusChannelEntrty> page = new Page(pageNo,pageSize);
        return tbSsbusLogMapper.list(page,key);
    }

    @Override
    public void deletes(String[] id) {
        tbSsbusLogMapper.deletes(id);
    }

    @Override
    public void save(TbSsbusLogEntrty tbSsbusLogEntrty) {
         tbSsbusLogMapper.save(tbSsbusLogEntrty);
    }

    @Override
    public TbSsbusLogEntrty getById(Long id) {
        return tbSsbusLogMapper.getById(id);
    }

    @Override
    public void delete(Long id) {
         tbSsbusLogMapper.delete(id);
    }


}
